public class CCC extends Thread{
    private User user;

    public CCC(User user){
        this.user=user;
    }

    @Override
    public void run() {
        try {
            Thread.sleep(1000);
            user.setName("ccc");
            System.out.println("C进来了修改了对象user,现在的user叫"+user.getName());

        } catch (InterruptedException e) {
            e.printStackTrace();
        }
    }


}
